package com.tqz.rc.spring.cloud.ribbon.rule;

import com.tqz.rc.api.Instance;
import com.tqz.rc.client.naming.Balancer;

import java.util.List;

/**
 * 根据权重选择随机选择一个
 * Created by smlz on 2019/11/21.
 */
public class TqzRcWeightedBalancer extends Balancer {

    public static Instance chooseInstanceByRandomWeight(List<Instance> hosts) {
        return getHostByRandomWeight(hosts);
    }
}
